package com.hand.wyc24548.domain.repository;

import com.hand.wyc24548.domain.entity.Company;
import io.choerodon.core.domain.Page;
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
import org.hzero.mybatis.base.BaseRepository;

/**
 * @Author wangyc
 * @create 2019/8/5 19:34
 */
public interface CompanyRepository extends BaseRepository<Company> {

    /**
     * 分页查询公司信息
     * @param company
     * @param pageRequest
     * @return
     */
    Page<Company> selectCompany(Company company, PageRequest pageRequest);

    /**
     * 根据公司编码查询公司信息
     * @param companyNumber
     * @return
     */
    Company selectDetailByCompanyNumber(String companyNumber);
}
